﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ChatDBAccess;
namespace Twitter
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["userId"] != null)
            {
                indexContent.InnerHtml = "<h1>Welcome to our chat!</h1><h3>You are logged in as " + (Session["user"] as User).UserName + "</h3>";
            }
            else
            {
                indexContent.InnerHtml = "<h1>Welcome to our chat!</h1><h3>You are NOT loged in! Please Login or Register</h3>";
            }
        }

    }
}